<template>
  <div>
    <ul>
      <li v-for="(item, index) in data" :key="index">
        {{ item.name }}
        <el-tree :data="item.child" />
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'ElTree',
  props: ['data'],
  data() {
    return {

    }
  },

  created() {

  },

  methods: {

  }
}
</script>

<style scoped lang='less'>

</style>
